import request from '@/utils/request'

export function contestBindingAll(data) {
	return request({
		url: '/system/h5/contestBinding/contestAll?groupId=' + data.groupId,
		data: data,
		method: 'post'
	})
}
export function playerLogContestAll(data) {
	return request({
		url: '/system/h5/playerLog/contestAll?contest=' + data.id,
		data: data,
		method: 'post'
	})
}
export function personalData(data) {
	return request({
		url: '/system/h5/tournament/personalData',
		data: data,
		method: 'post'
	})
}
export function getContestBindingGroupList(data) {
	return request({
		url: `/system/h5/contestBinding/getContestBindingGroupList?id=${data.id}`,
		method: 'get',
	})
}

export function getContestListByBindingGroupId(data) {
	return request({
		url: `/system/h5/contestBinding/getContestListByBindingGroupId?id=${data.id}`,
		method: 'get',
	})
}
export function getliverul(id) {
	return request({
		url: `/system/live/tournament/list?tournamentId=${id}`,
		method: 'get',
	})
}
export function getsignature(data) {
	return request({
		url: '/system/h5/tournament_chat/getsignature?url=' + data.url,
		data: {},
		method: 'get'
	})
}
export function getScoreMovement(data) {
	return request({
		url: '/system/h5/playerLog/scoreMovement',
		data: data,
		method: 'get'
	})
}
export function getKeyFigures(data) {
	return request({
		url: '/system/h5/playerLog/keyFigures',
		data: data,
		method: 'post'
	})
}
export function getKeyFiguresEnums(data) {
	return request({
		url: '/system/h5/playerLog/keyFiguresEnums',
		data: data,
		method: 'post'
	})
}

export function getPdfData(data) {
	return request({
		url: '/system/h5/basketballTeam/getPdfData',
		data: data,
		method: 'get'
	})
}
export function getLeagueH5ContestList(data) {
	return request({
		url: '/system/league/h5/contestList',
		data: data,
		method: 'get'
	})
}
export function getcontestBindingList(data) {
	return request({
		url: '/system/h5/contestBinding/list',
		data: data,
		method: 'get'
	})
}
export function getLeagueH5TournamentList(data) {
	return request({
		url: '/system/league/h5/tournamentList',
		data: data,
		method: 'get'
	})
}


export function getPlayerList(data) {
	return request({
		url: '/system/league/h5/playerLog/playerList',
		data: data,
		method: 'get'
	})
}
export function getLeagueH5RankingList(data) {
	return request({
		url: '/system/league/h5/rankingList',
		data: data,
		method: 'get'
	})
}
export function getPlayerPK(data) {
	return request({
		url: `/system/h5/playerLog/playerPK`,
		data: data,
		method: 'post'
	})
}

export function getLeagueH5League(id) {
	return request({
		url: `/system/league/h5/${id}`,
		method: 'get'
	})
}

export function getLeagueH5PlayerLogList(data) {
	return request({
		url: '/system/league/h5/playerLogList',
		data: data,
		method: 'get'
	})
}

export function getLeagueH5GetSummary(data) {
	return request({
		url: '/system/league/h5/getSummary',
		data: data,
		method: 'get'
	})
}


export function getLeagueH5BestOfTheGame(data) {
	return request({
		url: '/system/league/h5/bestOfTheGame',
		data: data,
		method: 'get'
	})
}

export function getLeagueH5RealTimeData(data) {
	return request({
		url: '/system/league/h5/realTimeData',
		data: data,
		method: 'get'
	})
}


export function getLeagueH5RealTimeDataTeam(data) {
	return request({
		url: '/system/league/h5/realTimeDataTeam',
		data: data,
		method: 'get'
	})
}

export function getLeagueH5playerLogdownBox(data) {
	return request({
		url: '/system/playerLog/downBox',
		data: data,
		method: 'get'
	})
}

export function getLeagueH5TeamCompare(data) {
	return request({
		url: '/system/league/h5/teamCompare',
		data: data,
		method: 'get'
	})
}

export function getLeagueH5AverageComparison(data) {
	return request({
		url: '/system/h5/playerLog/averageComparison?tournamentId=' + data.tournamentId,
		data: data,
		method: 'post'
	})
}
export function getLeagueH5SeasonComparison(data) {
	return request({
		url: '/system/h5/playerLog/seasonComparison?tournamentId=' + data.tournamentId,
		data: data,
		method: 'post'
	})
}

export function getLeagueH5LiveBegin(data) {
	return request({
		url: '/system/live/tournament/list',
		data: data,
		method: 'get'
	})
}

export function getH5BriefInfo(data) {
	return request({
		url: '/system/league/h5/getBriefInfo',
		data: data,
		method: 'get'
	})
}



export function getScore(data) {
	return request({
		url: '/system/league/h5/getScore',
		data: data,
		method: 'get'
	})
}


export function getlive(data) {
	return request({
		url: '/system/live/playback/even/list',
		data: data,
		method: 'get'
	})
}

export function getlivePlayer(data) {
	return request({
		url: '/system/live/playback/even/playList',
		data: data,
		method: 'get'
	})
}

export function getlivetournamentPlayList(data) {
	return request({
		url: '/system/live/playback/even/tournamentPlayList',
		data: data,
		method: 'get'
	})
}

export function getTournamentNumApi(data) {
	return request({
		url: '/system/h5/tournament/getTournamentNum',
		data: data,
		method: 'get'
	})
}
export function getlikeNumApi(data) {
	return request({
		url: '/system/h5/tournament/getGoodNum',
		data: data,
		method: 'get'
	})
}
export function saveGoodApi(data) {
	return request({
		url: '/system/h5/tournament/saveGood',
		data: data,
		method: 'post'
	})
}


export function getrankingList(data) {
	return request({
		url: '/system/league/h5/team/rankingList',
		data: data,
		method: 'get'
	})
}

///

export function getleague(id) {
	return request({
		url: `/system/league/h5/${id}`,
		method: 'get'
	})
}

export function getImgCanva(id) {
	return request({
		url: `/system/playerLog/getImg?tournamentId=${id}`,
		method: 'get'
	})
}


// /system/live/tournament/liveNum
export function setliveNum(id) {
	return request({
		url: `/system/live/tournament/liveNum?tournamentId=${id}`,
		method: 'get'
	})
}


export function getrankingListH5(data) {
	return request({
		url: '/system/league/h5/rankingList',
		data: data,
		method: 'get'
	})
}

export function getSaishituijianApi(data) {
	return request({
		url: '/system/h5/banner/list',
		data: data,
		method: 'get'
	})
}

export function getCansaiqiuduiApi(data) {
	return request({
		url: '/system/h5/basketballTeam/list',
		data: data,
		method: 'get'
	})
}

export function getCansaiqiuduishujuListApi(data) {
	return request({
		url: '/system/h5/basketballTeam/playTeamData',
		data: data,
		method: 'get'
	})
}

export function getShujuDataListApi(data) {
	return request({
		url: '/system/h5/basketballTeam/teamData',
		data: data,
		method: 'get'
	})
}

export function getAccessToken(data) {
	return request({
		url: '/system/wx/getAccessToken',
		data: data,
		method: 'post'
	})
}

export function getUserInfo(data) {
	return request({
		url: '/system/wx/getUserInfo',
		data: data,
		method: 'post'
	})
}

export function getChat(data) {
	return request({
		url: '/system/h5/tournament_chat/list',
		data: data,
		method: 'get'
	})
}

export function sendChat(data) {
	return request({
		// url: '/system/h5/tournament_chat/list',
		url: '/system/h5/tournament_chat/send',
		data: data,
		method: 'post'
	})
}

export function getAccessTokenNew(data) {
	return request({
		url: '/auth/wx/getAccessToken',
		params: data,
		method: 'post'
	})
}

export function getUserInfoNew(data) {
	return request({
		url: '/auth/wx/getUserInfo',
		params: data,
		method: 'post'
	})
}

export function getLogo(data) {
	return request({
		url: '/system/league/h5/contest/getLogo',
		data: data,
		method: 'get'
	})
}